package com.d2.modules.system.permission.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.d2.modules.system.permission.entity.Role;
import com.d2.modules.system.permission.mapper.IRoleMapper;
import com.d2.modules.system.permission.service.IRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<IRoleMapper, Role> implements IRoleService {
    @Override
    public List<Role> queryRoleByUserId(Long userId){
        return baseMapper.queryRoleByUserId(userId);
    }
}
